package com.example.newdemo.view.image;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.animation.AccelerateDecelerateInterpolator;

import androidx.annotation.Nullable;

import com.example.newdemo.R;
import com.example.newdemo.view.image.viewImage.PathView;

public class SvgImageActivity extends Activity {


    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.act_svg_image_view);
        final PathView pathView=findViewById(R.id.sgv_view_path_view);

        pathView.setOnClickListener(new View.OnClickListener(){
            @Override
            public void onClick(View v) {
                pathView.getPathAnimator().delay(100).duration(1500)
                        .interpolator(new AccelerateDecelerateInterpolator())
                        .start();
            }
        });



    }


}








